Page({
  data: {
    houseDetail: {}
  },
  onLoad({ id }) {
    // console.log(id)
    this.getHouseDetail(id)
  },
  async getHouseDetail(id) {
    const res = await wx.http.get('/room/' + id)
    // console.log(res)
    this.setData({
      houseDetail: res
    })
  },
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.houseDetail.id,
    })
  },
})
